# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
# Contributor: gato_lento <vukk.euob at gmail dot com>
# Contributor: James W. Barnett <james at wbarnett dot us>

pkgname=grub-btrfs
pkgver=4.12
pkgrel=2
pkgdesc='Include btrfs snapshots in GRUB boot options'
arch=('any')
url="https://github.com/Antynea/${pkgname}"
license=('GPL3')
depends=('btrfs-progs' 'grub')
optdepends=(
    'snapper: For snapper support'
    'inotify-tools: For grub-btrfsd daemon'
)
backup=('etc/default/grub-btrfs/config')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
b2sums=('5b6a4aa453057e90e2e142ed6b4bc84f536a8eefdc8ea3f8cfccada4706ec49759bdb04a67f64f0705a302a34494d1b758cdae37a502af1b7cd8dfb6cae5f069')

package() {
    cd "${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" INITCPIO=true install
}

# vim:set ts=4 sw=4 et:
